home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 7
/
Gekikoh Dennoh Club Vol. 7 (Japan).7z
/
Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin
/
ikap
/
graphic1
/
obj_18
/
baku.bas
next >
Wrap
BASIC Source File
|
1999-06-15
|
1KB
|
46 lines
int i,j,pl,anm,px,py
dim char dat(255)
dim int pat0(15)={&H100,&H102,&H104,&H106,&H108,&H10A,&H10C,&H10E,
&H120,&H122,&H124,&H126,&H128,&H12A,&H12C,&H12E}
dim int pat1(15)={&HB40,&HB42,&HB44,&HB46,&HB48,&HB4A,&HB4C,&HB4E,
&HB60,&HB62,&HB64,&HB66,&HB68,&HB6A,&HB6C,&HB6E}
dim int pat2(15)={&H180,&H182,&H184,&H186,&H188,&H18A,&H18C,&H18E,
&H1A0,&H1A2,&H1A4,&H1A6,&H1A8,&H1AA,&H1AC,&H1AE}
dim int pat3(15)={&HCC0,&HCC2,&HCC4,&HCC6,&HCC8,&HCCA,&HCCC,&HCCE,
&HCE0,&HCE2,&HCE4,&HCE6,&HCE8,&HCEA,&HCEC,&HCEE}
dim char x(15),y(15),an(15)
screen 0,3,1,1
sp_init() : sp_disp(1)
spfile_def("baku.sp",0)
palfile_def("baku.pal",1)
/*fill(0,0,255,255,rgb(10,20,30))
for i=0 to 15
x(i)=(rand() and 63)+80
y(i)=(rand() and 63)+80
an(i)=rand() and 15
an(i)=i*2
next
while inkey$(0)<>chr$(&H1B)
for i=0 to 15
an(i)=an(i)+1 and 15
if an(i) = 0 then {
x(i)=(rand() and 63)+80
y(i)=(rand() and 63)+80
}
next
v_disp()
for i=0 to 7
px=x(i)
py=y(i)
pl=pat3(an(i))
sp_set(i*4+ 0,px ,py ,pl,3)
sp_set(i*4+ 1,px+16,py ,pl+1,3)
sp_set(i*4+ 2,px ,py+16,pl+16,3)
sp_set(i*4+ 3,px+16,py+16,pl+17,3)
next
endwhile